package com.xiaomi.back.service.business;

import com.xiaomi.back.dao.business.BusinessDao;
import com.xiaomi.pojo.Business;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BusinessImpl implements BusinessService {


    @Autowired
    private BusinessDao businessDao;

    //商家登陆
    @Override
    public Business Login(String bphone, String password) {
        return businessDao.Login(bphone, password);
    }

    //修改密码
    @Override
    public int UpPass(int id, String newPassword) {
        return businessDao.UpPass(id,newPassword);
    }
}
